package com.zxy.dao;

import com.zxy.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository("bookMapper")
public interface BookMapper {
    List<Book> getAll();
    //按照条件查询
    Book SelectByExample(Integer book);

    //插入书籍
    int AddBook(Book book);

    //根据条件删除书籍
    int DeleteByExample(Book book);

    //修改书籍内容
    int UpdateBook(Book book);


}
